package com.smile;


import com.smile.annotation.EnableFeignClients;
import com.smile.annotation.WebSocketConfig;
import com.smile.config.FeignConfig;
import com.smile.config.FooConfiguration;
import com.smile.config.MyConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Component;

/**
 * 设备管理相关启动类
 *
 * @author 宁海博
 * @Date 2025/6/13
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@WebSocketConfig
@EnableScheduling
@Component
public class DeviceApplication implements CommandLineRunner {

    @Value("${spring.redis.host}")
    private String host;

    public static void main(String[] args) {
        SpringApplication.run(DeviceApplication.class, args);

    }

    @Override
    public void run(String... args) throws Exception {
        System.out.println("redis=" + host);
    }
}
